import reuquest from "../utils/reuquest";
import { ILoginParams } from "../types/api";
import { IDept } from "../types/api";
export default {
  // 登录
  login(params: ILoginParams) {
    return reuquest.post("/users/login", params);
  },
  // 部门列表
  getDeptList() {
    return reuquest.get<IDept[]>("/dept/list");
  },
};
